<%-- 
    Document   : binhluanchitietsanphamcontent
    Created on : Oct 29, 2011, 7:55:31 AM
    Author     : Administrator
--%>

<%@page import="org.hibernate.HibernateException"%>
<%@page import="hibernate.pojo.Binhluan"%>
<%@page import="java.util.List"%>
<%@page import="hibernate.pojo.Khachhang"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>


<%
    try {
        Khachhang khachhang = (Khachhang) session.getAttribute("KhachHang");
        String productID = (String) request.getAttribute("maSanPhamBinhLuan");
        if (productID != null) {
%> 
<div class="BoxComment" id="PositionBoxComment">
    <div class="BoxCommentTop">
        <div class="BoxCommentBottom">
            <div class="Write">
                <h2>Thêm thảo luận của bạn</h2>
                <p class="Right">Có 36 thảo luận</p>
                <div class="BoxWriteCom">
                    <div class="AvataCom" style="padding:3px;">
                        <img src="<%=khachhang.getAnhDaiDien()%>" alt="" />                        
                    </div>
                    <form id="TopicForm1" name="TopicForm1" method="post" action="commentcontroller?action=sendnewcomment&amp;maSanPham=<%=productID%>">
                        <fieldset>
                            <label></label>
                            <textarea name="textarea" id="TopicComment0" class="pleasewrite" cols="45" rows="5"></textarea>                                
                        </fieldset> 
                        <input class="SendCom" type="submit" name="submit" value="Gửi" style="width: 50px; height: 30px;" />
                    </form>
                </div>
            </div>

            <div class="BoxView1">
                <div class="BoxConView">
                    <div class="AvaView">
                        <img src="DealZing_files/zingdeal.jpg" class="TopicAvatar" alt="" />
                    </div>
                    <div class="ContView">
                        <p>
                            <strong class="Nick">
                                <a href="http://deal.zing.vn/tp-ho-chi-minh/user/zingdeal001">Hỗ Trợ Zing Deal</a>                                        </strong>
                            <span class="Text11">&nbsp;gửi lúc 20 giờ, 18 phút trước</span>
                        </p>
                        <p><%=bl.getNoiDungBinhLuan()%></p>
                        <a href="" class="AnsView2" onclick="childrentDiscussion('28172');"><span>0 thảo luận</span></a>
                        <a href="" class="AnsView1" style="display:none;"><span>0 thảo luận</span></a>
                    </div>
                </div>
                <div id="childrent-dicussion-28172" class="JsTopicContent hide"></div>
            </div>

            <div class="BoxView2">
                <div class="BoxConView">
                    <div class="AvaView">
                        <img src="DealZing_files/maihangl.jpg" class="TopicAvatar" alt="" /> 
                    </div>
                    <div class="ContView">
                        <p>
                            <strong class="Nick">
                                <a href="http://deal.zing.vn/tp-ho-chi-minh/user/maihanglucky">maihanglucky</a>                                        </strong>
                            <span class="Text11">&nbsp;gửi lúc 21 giờ, 10 phút trước</span>
                        </p>
                        <p>da binh luan hom nay
                        </p>
                        <a href="" class="AnsView2" onclick="childrentDiscussion('28144');"><span>0 thảo luận</span></a>
                        <a href="" class="AnsView1" style="display:none;"><span>0 thảo luận</span></a>
                    </div>
                </div>
                <div id="childrent-dicussion-28144" class="JsTopicContent hide"></div>
            </div>                                                  

            <div class="PagingWrapper">
                <div class="PageControl">
                    <ul class="PageList">
                        <span class="PagingFirstPageLnk">&laquo; Trước</span>
                        <li class="current"><span>1</span></li> 
                        <li><a href="http://deal.zing.vn/tp-ho-chi-minh/topic_discussions/index/780/page:2">2</a></li> 
                        <a href="http://deal.zing.vn/tp-ho-chi-minh/topic_discussions/index/780/page:2" class="PagingNextPageLnk">Tiếp theo &raquo;</a>
                    </ul>
                </div>
            </div>            
        </div>
    </div>
</div>
<%
        }
    } catch (HibernateException ex) {
        out.println(ex);
    }
%>